﻿/*
 * Created by SharpDevelop.
 * User: fred
 * Date: 29/03/2011
 * Time: 20:39
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.IO;
using GalaSoft.MvvmLight;

namespace MetaVideoEditorEvolved.Entity
{
	public class CreateMediaFolderItem : ViewModelBase
	{
		private string mediaName;
		private ActionStatus status;
		private FileInfo media;
		
		public FileInfo Media
		{
			get
			{
				return media;
			}
			set
			{
				media = value;
				MediaName = media.Name.Replace(media.Extension, string.Empty);
				RaisePropertyChanged("Media");
			}
		}
		
		public string MediaName
		{
			get
			{
				return mediaName;
			}
			set
			{
				mediaName = value;
				RaisePropertyChanged("MediaName");
			}
		}
		
		public ActionStatus Status
		{
			get
			{
				return status;
			}
			set
			{
				status = value;
				RaisePropertyChanged("Status");
			}
		}
	}
}
